import {get,post} from '../../utils/request'

//创建论坛发帖
export const handleCreateForum = (data) => {
    return post('/client/postBar/add',data)
}

//论坛帖子详情
export const handleForumDetail = (data) => {
    return post('/client/postBar/detail',data)
}

//论坛帖子列表
export const handleForumList = (data) => {
    return post('/client/postBar/list',data)
}

// 帖子和评论点赞
export const handleForumLike = (data) => {
    return post('/client/comment/like',data)
}

// 帖子发表评论
export const handleForumComment = (data) => {
    return post('/client/comment/add',data)
}

// 帖子评论列表
export const handleForumCommentList = (data) => {
    return post('/client/comment/list',data)
}

// 帖子评论删除
export const handleForumCommentDelete = (data) => {
    return post('/client/comment/delete',data)
}